//
//  YXVideoKitType.h
//  MiaoPaiVideoKitSample
//
//  Created by Makarov on 2017/12/13.
//  Copyright © 2017年 Makarov. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef struct
{
    union
    {
        struct
        {
            float x, y, z;
        };
        float v[3];
    };
} YXFloat3;

typedef struct
{
    union
    {
        struct
        {
            float x, y, z, w;
        };
        float v[4];
    };
} YXFloat4;

static inline YXFloat4 YXFloat4Make(float x, float y, float z, float w)
{
    YXFloat4 v;
    v.x = x;
    v.y = y;
    v.z = z;
    v.w = w;
    return v;
}

typedef struct
{
    union
    {
        struct
        {
            int x, y, z;
        };
        int v[3];
    };
} YXInt3;

typedef struct
{
    union
    {
        struct
        {
            int x, y, z, w;
        };
        int v[4];
    };
} YXInt4;


